<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Comatible" content="IE=edge,chrome=1">
    <title>列表页面</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link href="" rel="stylesheet">
</head>
<body>
<div class="table-responsive">
    <table class="table table-striped table-sm" border="1">
        <thead>
        <tr>
            <th>序号</th>
            <th>username</th>
            <th>sex</th>
            <th>birthday</th>
            <th>address</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="user:${list}">
            <td th:text="${user.id}"></td>
            <td>[[${user.username}]]</td>
            <td th:text="${user.sex}"></td>
            <!--<td th:text="${emp.gender}==0?'女':'男'"></td>-->
            <!--<td th:text="${emp.depar<!--配置自定义类型转换器，它的配置方式是采用注册服务的方式来实现的-->
            <!--<td th:text="${#dates.format(user.birthday, 'yyyy-MM-dd HH:mm')}"></td>-->
            <td>[[${user.birthday}]]</td>
            <td>[[${user.address}]]</td>
            <td>
                <a class="btn btn-sm btn-primary" th:href="@{/user/}+${user.id}">编辑</a>
                <button th:attr="del_uri=@{/user/}+${user.id}" class="btn btn-sm btn-danger deleteBtn">删除
                </button>
            </td>
        </tr>
        </tbody>
    </table>
</div>
</body>
</html>